package com.example.service.impl;

import java.util.Arrays;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.example.dao.LanguageDao;
import com.example.model.Language;
import com.example.model.query.LanguageExample;
import com.example.service.LanguageService;


/**
 * Created on 2017/12/26 18:50
 */
@Service
public class LanguageServiceImpl implements LanguageService {

    @Autowired
	private LanguageDao languageDao;

    @Transactional(readOnly = true)
    public Language selectByPrimaryKey(Byte id) {
        return languageDao.selectByPrimaryKey(id);
    }

	@Transactional(readOnly = true)
	public List<Language> selectByExample(LanguageExample q) {
		return languageDao.selectByExample(q);
	}

	@Transactional
	public Object insert(Language t) {
		return languageDao.insert(t);
	}

	@Transactional
	public Object insertSelective(Language t) {
		return languageDao.insertSelective(t);
	}

	@Transactional
	public Object updateByPrimaryKeySelective(Language t) {
		return languageDao.updateByPrimaryKeySelective(t);
	}

	@Transactional
	public Object updateByExampleSelective(Language t, LanguageExample q) {
		return languageDao.updateByExampleSelective(t, q);
	}

	@Transactional
	public Object updateByExample(Language t, LanguageExample q) {
		return languageDao.updateByExample(t, q);
	}

    @Transactional
    public Object updateByPrimaryKey(Language t) {
        return languageDao.updateByPrimaryKey(t);
    }

	@Transactional(readOnly = true)
	public Long countByExample(LanguageExample q) {
		return languageDao.countByExample(q);
	}

    @Transactional
    public Integer deleteByPrimaryKey(Byte id) {
        return languageDao.deleteByPrimaryKey(id);
    }



	@Transactional
	public Integer deleteByExample(LanguageExample q) {
		return languageDao.deleteByExample(q);
	}

}
